package org.bluedream.core.module.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.PageEntity;

/**
 * @ClassName RoleRelation
 * @Description TODO
 * @Author foxsand
 * @Data 2021-07-01 14:32
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "SYS_ROlE_RELATION")
public class RoleRelation extends PageEntity<RoleRelation> {
    private static final long serialVersionUID = -3579762733792025607L;

    @NonNull
    private String roleId;

    @NonNull
    private String type;

    @NonNull
    private String entityId;

    public RoleRelation(String roleId, String type, String entityId) {
        this.roleId = roleId;
        this.type = type;
        this.entityId = entityId;
    }
}
